package com.yeyks.common.utils.apputil.mqenum;

import lombok.Getter;


/**
 *  消息队列枚举配置, 可以自定义一些消息队列信息
 * @author Administrator
 */
@Getter
public enum QueueEnum {
    /**
     * 订单消息通知队列
     */
    QUEUE_ORDER_CANCEL("night-fish.app.order.direct", "night-fish.app.order.cancel", "night-fish.app.order.cancel"),
    /**
     * 订单消息通知ttl队列
     */
    QUEUE_TTL_ORDER_CANCEL("night-fish.app.order.direct.ttl", "night-fish.app.order.cancel.ttl", "night-fish.app.order.cancel.ttl");

    /**
     * 订单创建通知信息
     */
    private final String ORDER_TO_B_EXCHANGE = "order.to.b.exchange";
    private final String ORDER_TO_B_KEY = "order.to.b.key";

    /**
     * 交换名称
     */
    private String exchange;
    /**
     * 队列名称
     */
    private String name;
    /**
     * 路由键
     */
    private String routeKey;

    QueueEnum(String exchange, String name, String routeKey) {
        this.exchange = exchange;
        this.name = name;
        this.routeKey = routeKey;
    }
}
